package traveler.models;

import java.util.ArrayList;

public class Course
{
	private String _name;
	private ArrayList<Step> _steps;
	
	public Course()
	{
		_name = "Course 1";
		_steps = new ArrayList<Step>();

		for(int i = 0; i < 4; i++)
		{
			Step step = new Step();
			step.setName("Step " + (i + 1));
			_steps.add(step);
		}
	}
	
	public Course(String name, ArrayList<Step> steps)
	{
		_name = name;
		_steps = steps;
	}
	
	public static ArrayList<Course> getCourses()
	{
		ArrayList<Course> courses = new ArrayList<Course>();
		
		for(int i = 0; i < 4; i++)
		{
			Course course = new Course();
			course.setName("Course " + (i + 1));
			courses.add(course);
		}
		
		return courses;
	}

	public String getName() {
		return _name;
	}

	public void setName(String name) {
		_name = name;
	}

	public ArrayList<Step> getSteps() {
		return _steps;
	}

	public void setSteps(ArrayList<Step> steps) {
		_steps = steps;
	}
}
